var express = require('express');
var router = express.Router();

/* 实验get，post请求*/
router.get('/get', function(req, res, next) {
    console.log(req.query);
    res.json(req.query);
});
router.post('/post', function(req, res, next) {
    console.log(req.body);
    res.json(req.body);
});

module.exports = router;
